import time,datetime
import os
import platform
from sync import sync_blog


if __name__ == "__main__":
    while (1):
        print("\n\n")
        print(f"同步时间：{datetime.datetime.now()}")
        path = os.path.dirname(__file__)
        path = os.path.abspath(path)
        if platform.system() != 'Windows':
            sync_blog(path)
        time.sleep(3731)
